<?php 
   $categories = Category::model()->findAll();
?>
<div class="list-categories">
<h3>Chuyên mục</h3>
   <ul class="product-categories">
   <?php 
      if(count($categories) > 0){
         foreach($categories as $item){
            $link = Yii::app()->request->hostInfo . '/category/'.$item->cat_id. '/' . CVietnameseTools::makeUrlFriendly($item->cat_name) . '/';?>
            <li class="cat-item"><a href="<?php echo $link?>"><?php echo $item->cat_name?></a></li>
         <?php }?>
      <?php }?>
   </ul>
</div>
